package org.ws.task.example.batch;

import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.annotation.Order;
import org.ws.task.item.ExecuteContext;
import org.ws.task.item.PullTask;
import org.ws.task.repository.WorkerContextRepository;
import org.ws.task.starter.EnableWsTask;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;

@Slf4j
@EnableWsTask
@EnableBatchProcessing
@SpringBootApplication
public class ExampleBatchApplication {

    public static void main(String[] args) {
        log.info("ExampleBatch Application start ");
        SpringApplication.run(ExampleBatchApplication.class, args);
    }

}
